package com.zoke.daycarpool.thirdapi;

import android.app.Activity;

import com.umeng.socialize.bean.SHARE_MEDIA;
import com.umeng.socialize.controller.UMServiceFactory;
import com.umeng.socialize.controller.UMSocialService;
import com.umeng.socialize.controller.listener.SocializeListeners.UMAuthListener;
import com.umeng.socialize.sso.SinaSsoHandler;

/**
 * 新浪微博第三方
 * 
 * @author JackWu
 */
public class Sina {

	public static void loginSina(Activity activity, UMAuthListener listener) {
		UMSocialService mController = UMServiceFactory
				.getUMSocialService("com.umeng.login");
		mController.getConfig().setSsoHandler(new SinaSsoHandler());// 客户端不能用，暂时先不要了
		mController.doOauthVerify(activity, SHARE_MEDIA.SINA, listener);
	}
}
